package cn.px.activiti.dao.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description 审批记录信息
 * @author 品讯科技
 * @date 2024-08
 * @Version Copyright (c) 2019,安徽阡陌网络科技有限公司 All rights reserved.
 */
@Data
public class ActAuditRecord implements Serializable {
    /**
     * 审批人id
     */
    private String userId;
    /**
     * 审批人姓名
     */
    private String userName;
    /**
     * 审批意见
     */
    private String opinion;
    /**
     * 审批时间
     */
    private LocalDateTime createTime;
    /**
     * 是否通过
     */
    private Boolean flag;

    private Integer node;
    /**
     * 流程id
     */
    private String taskId;

    public ActAuditRecord(String userId, String userName, String opinion, LocalDateTime createTime, Boolean flag, String taskId) {
        this.userId = userId;
        this.userName = userName;
        this.opinion = opinion;
        this.createTime = createTime;
        this.flag = flag;
        this.taskId = taskId;
    }

    public ActAuditRecord(String userId, String userName, String opinion, LocalDateTime createTime, Boolean flag, String taskId, Integer node) {
        this.userId = userId;
        this.userName = userName;
        this.opinion = opinion;
        this.createTime = createTime;
        this.flag = flag;
        this.taskId = taskId;
        this.node = node;
    }
}
